

****Medians of Reported Southern Classifications Real Income***

egen medrincnonsouth = median(real_pc_inc_ann) if nonsouth==1, by(year) 


egen medrincsouth = median(real_pc_inc_ann) if nonsouth==0, by(year) 

egen medrincnewsouth = median(real_pc_inc_ann) if newsouth==1, by(year) 

egen medrincoldsouth = median(real_pc_inc_ann) if oldsouth==1, by(year) 




****Medians of Census Southern Classifications Real Income***

gen nonsouth_census = nonsouth

replace nonsouth_census = 0 if state_abrev=="MD"

replace nonsouth_census = 0 if state_abrev=="DE"

gen newsouth_census = newsouth

gen oldsouth_census = oldsouth

replace newsouth_census = 1 if state_abrev=="MD"

replace newsouth_census = 1 if state_abrev=="DE"

egen medrincnonsouth_census = median(real_pc_inc_ann) if nonsouth_census==1, by(year) 


egen medrincsouth_census = median(real_pc_inc_ann) if nonsouth_census==0, by(year) 


egen medrincnewsouth_census = median(real_pc_inc_ann) if newsouth_census==1, by(year) 


egen medrincoldsouth_census = median(real_pc_inc_ann) if oldsouth_census==1, by(year) 

****Correlations Between Reported and Census Classifications, Real Income 1942 - 2010***
***ALL SOUTHERN***

cor medrincsouth medrincsouth_census if nonsouth==0

cor medrincsouth medrincsouth_census if year <1981 & nonsouth==0

cor medrincsouth medrincsouth_census if year >1980 & nonsouth==0


***NEW SOUTH**

cor medrincnewsouth medrincnewsouth_census if newsouth==1

cor medrincnewsouth medrincnewsouth_census if year <1981 & newsouth==1

cor medrincnewsouth medrincnewsouth_census if year >1980 & newsouth==1


***OLD SOUTH***

cor medrincoldsouth medrincoldsouth_census if oldsouth==1

cor medrincoldsouth medrincoldsouth_census if year <1981 & oldsouth==1

cor medrincoldsouth medrincoldsouth_census if year >1980 & oldsouth==1






****Medians of Reported Southern Classifications Political Competition***

***Reported***

egen medranneysouth = median(klarnerranney) if nonsouth==0, by(year) 


egen medranneyoldsouth = median(klarnerranney) if oldsouth==1, by(year) 

egen medranneynewsouth = median(klarnerranney) if newsouth==1, by(year) 





***CENSUS VERSION***

egen medranneysouth_census = median(klarnerranney) if nonsouth_census==0, by(year) 


egen medranneynewsouth_census = median(klarnerranney) if newsouth_census==1, by(year) 

egen medranneyoldsouth_census = median(klarnerranney) if oldsouth_census==1, by(year) 


****Correlations Between Reported and Census Classifications, Political Competition***

***ALL SOUTHERN***

cor medranneysouth medranneysouth_census if nonsouth==0

cor medranneysouth medranneysouth_census if nonsouth==0 & year<1981

cor medranneysouth medranneysouth_census if nonsouth==0 & year>1980


***NEW SOUTH***


cor medranneynewsouth medranneynewsouth_census if newsouth==1

cor medranneynewsouth medranneynewsouth_census if newsouth==1 & year<1981

cor medranneynewsouth medranneynewsouth_census if newsouth==1 & year>1980



***OLD SOUTH***

cor medranneyoldsouth medranneyoldsouth_census if oldsouth==1

cor medranneyoldsouth medranneyoldsouth_census if oldsouth==1 & year<1981

cor medranneyoldsouth medranneyoldsouth_census if oldsouth==1 & year>1980



******************************************************************************
*****************************************************************************
********************************************************************************


***CONFEDERACY***

gen nonsouth_confed = nonsouth

replace nonsouth_confed=1 if state_abrev=="KY"

replace nonsouth_confed=1 if state_abrev=="OK"

replace nonsouth_confed=1 if state_abrev=="WV"


gen newsouth_confed = newsouth


gen oldsouth_confed = oldsouth

replace oldsouth_confed=0 if state_abrev=="KY"

replace oldsouth_confed=0 if state_abrev=="OK"

replace oldsouth_confed=0 if state_abrev=="WV"




***Median by Confederacy***



egen medrincsouth_confed = median(real_pc_inc_ann) if nonsouth_confed==0, by(year) 


egen medrincnewsouth_confed = median(real_pc_inc_ann) if newsouth_confed==1, by(year) 


egen medrincoldsouth_confed = median(real_pc_inc_ann) if oldsouth_confed==1, by(year) 



***PC***


egen medranneysouth_confed = median(klarnerranney) if nonsouth_confed==0, by(year) 

egen medranneynewsouth_confed = median(klarnerranney) if newsouth_confed==1, by(year) 


egen medranneyoldsouth_confed = median(klarnerranney) if oldsouth_confed==1, by(year) 


**********Correlations*******

** Real Income **
**All South**
cor medrincsouth medrincsouth_confed if nonsouth==0

cor medrincsouth medrincsouth_confed if nonsouth==0 & year<1981

cor medrincsouth medrincsouth_confed if nonsouth==0 & year>1980

** New South**
cor medrincnewsouth medrincnewsouth_confed if newsouth==1

cor medrincnewsouth medrincnewsouth_confed if newsouth==1 & year<1981

cor medrincnewsouth medrincnewsouth_confed if newsouth==1 & year>1980

** Old South**
cor medrincoldsouth medrincoldsouth_confed if oldsouth==1

cor medrincoldsouth medrincoldsouth_confed if oldsouth==1 & year<1981

cor medrincoldsouth medrincoldsouth_confed if oldsouth==1 & year>1980



**PC**

****Correlations Between Reported and Confederacy Classifications, Political Competition 1942 - 2010***

***All South***
cor medranneysouth medranneysouth_confed if nonsouth==0

cor medranneysouth medranneysouth_confed if nonsouth==0 & year<1981

cor medranneysouth medranneysouth_confed if nonsouth==0 & year>1980

***New South***

cor medranneynewsouth medranneynewsouth_confed if newsouth==1

cor medranneynewsouth medranneynewsouth_confed if newsouth==1 & year<1981

cor medranneynewsouth medranneynewsouth_confed if newsouth==1 & year>1980

***Old South***

cor medranneyoldsouth medranneyoldsouth_confed if oldsouth==1

cor medranneyoldsouth medranneyoldsouth_confed if oldsouth==1 & year<1981


cor medranneyoldsouth medranneyoldsouth_confed if oldsouth==1 & year>1980




*******************************************************************************
*******************************************************************************
*******************************************************************************
*******************************************************************************

****HYBRID + MISSOURI*****


gen nonsouth_mo = nonsouth

replace nonsouth_mo=0 if state_abrev=="MO"


gen newsouth_mo = newsouth


gen oldsouth_mo = oldsouth

replace oldsouth_mo=1 if state_abrev=="MO"



***Median by H+M***



egen medrincsouth_mo = median(real_pc_inc_ann) if nonsouth_mo==0, by(year) 


egen medrincnewsouth_mo = median(real_pc_inc_ann) if newsouth_mo==1, by(year) 


egen medrincoldsouth_mo = median(real_pc_inc_ann) if oldsouth_mo==1, by(year) 



***PC***


egen medranneysouth_mo = median(klarnerranney) if nonsouth_mo==0, by(year) 

egen medranneynewsouth_mo = median(klarnerranney) if newsouth_mo==1, by(year) 


egen medranneyoldsouth_mo = median(klarnerranney) if oldsouth_mo==1, by(year) 




**********Correlations*******

** Real Income H+M **
**All South**
cor medrincsouth medrincsouth_mo if nonsouth==0

cor medrincsouth medrincsouth_mo if nonsouth==0 & year<1981

cor medrincsouth medrincsouth_mo if nonsouth==0 & year>1980

** New South**
cor medrincnewsouth medrincnewsouth_mo if newsouth==1

cor medrincnewsouth medrincnewsouth_mo if newsouth==1 & year<1981

cor medrincnewsouth medrincnewsouth_mo if newsouth==1 & year>1980

** Old South**
cor medrincoldsouth medrincoldsouth_mo if oldsouth==1

cor medrincoldsouth medrincoldsouth_mo if oldsouth==1 & year<1981

cor medrincoldsouth medrincoldsouth_mo if oldsouth==1 & year>1980



**PC**

****Correlations Between Reported and H+M Classifications, Political Competition 1942 - 2010***

***All South***
cor medranneysouth medranneysouth_mo if nonsouth==0

cor medranneysouth medranneysouth_mo if nonsouth==0 & year<1981

cor medranneysouth medranneysouth_mo if nonsouth==0 & year>1980

***New South***

cor medranneynewsouth medranneynewsouth_mo if newsouth==1

cor medranneynewsouth medranneynewsouth_mo if newsouth==1 & year<1981


cor medranneynewsouth medranneynewsouth_mo if newsouth==1 & year>1980

***Old South***

cor medranneyoldsouth medranneyoldsouth_mo if oldsouth==1

cor medranneyoldsouth medranneyoldsouth_mo if oldsouth==1 & year<1981


cor medranneyoldsouth medranneyoldsouth_mo if oldsouth==1 & year>1980




****Deep South + Peripheral South***

****Medians of Census Southern Classifications Real Income***

gen nonsouth_deep = nonsouth

replace nonsouth_deep = 1 if state_abrev=="KY"

replace nonsouth_deep = 1 if state_abrev=="OK"

replace nonsouth_deep = 1 if state_abrev=="WV"


gen newsouth_peripheral = 0

replace newsouth_peripheral = 1 if state_abrev=="AR"

replace newsouth_peripheral = 1 if state_abrev=="FL"

replace newsouth_peripheral = 1 if state_abrev=="NC"

replace newsouth_peripheral = 1 if state_abrev=="TN"

replace newsouth_peripheral = 1 if state_abrev=="TX"

replace newsouth_peripheral = 1 if state_abrev=="VA"


gen oldsouth_deep = 0

replace oldsouth_deep = 1 if state_abrev=="AL"

replace oldsouth_deep = 1 if state_abrev=="GA"

replace oldsouth_deep = 1 if state_abrev=="LA"

replace oldsouth_deep = 1 if state_abrev=="MS"

replace oldsouth_deep = 1 if state_abrev=="SC"



egen medrincnonsouth_deep = median(real_pc_inc_ann) if nonsouth_deep==1, by(year) 


egen medrincsouth_deep = median(real_pc_inc_ann) if nonsouth_deep==0, by(year) 


egen medrincnewsouth_peripheral = median(real_pc_inc_ann) if newsouth_peripheral==1, by(year) 


egen medrincoldsouth_deep = median(real_pc_inc_ann) if oldsouth_deep==1, by(year) 

****Correlations Between Reported and Census Classifications, Real Income 1942 - 2010***
***ALL SOUTHERN***

cor medrincsouth medrincsouth_deep

cor medrincsouth medrincsouth_deep if year <1981 

cor medrincsouth medrincsouth_deep if year >1980


***NEW SOUTH**

cor medrincnewsouth medrincnewsouth_peripheral

cor medrincnewsouth medrincnewsouth_peripheral if year <1981 

cor medrincnewsouth medrincnewsouth_peripheral if year >1980


***OLD SOUTH***

cor medrincoldsouth medrincoldsouth_deep if oldsouth==1

cor medrincoldsouth medrincoldsouth_deep if year <1981

cor medrincoldsouth medrincoldsouth_deep if year >1980






***DEEP SOUTH VERSION***

egen medranneysouth_deep = median(klarnerranney) if nonsouth_deep==0, by(year) 


egen medranneynewsouth_deep = median(klarnerranney) if newsouth_peripheral==1, by(year) 

egen medranneyoldsouth_deep = median(klarnerranney) if oldsouth_deep==1, by(year) 


****Correlations Between Reported and Census Classifications, Political Competition***

***ALL SOUTHERN***

cor medranneysouth medranneysouth_deep

cor medranneysouth medranneysouth_deep if nonsouth==0

cor medranneysouth medranneysouth_deep if nonsouth==0


***NEW SOUTH***


cor medranneynewsouth medranneynewsouth_peripheral

cor medranneynewsouth medranneynewsouth_peripheral if year<1981

cor medranneynewsouth medranneynewsouth_peripheral if year>1980



***OLD SOUTH***

cor medranneyoldsouth medranneyoldsouth_deep if oldsouth==1

cor medranneyoldsouth medranneyoldsouth_deep if year<1981

cor medranneyoldsouth medranneyoldsouth_deep if year>1980












